# PRODUCT INFO
skip_phases= ["buildinstall"]
release_name = '[[ release.id_prefix.title() ]]'
release_short = '[[ release.id_prefix.title() ]]'
release_version = '[[ release.version_int ]]'
release_type = 'updates[% if request.name == 'testing' %]-testing[% endif %]'
release_is_layered = False

# GENERAL SETTINGS
comps_file = {
    'scm': 'git',
    'repo': 'https://pagure.io/fedora-comps.git',
    'branch': None, # defaults to cvs/HEAD or git/master
    'file': 'comps-[[ release.branch ]].xml',
    'command': 'make',
}
variants_file='variants.xml'
sigkeys = [
[% if release.version_int == 25 %]
	'fdb19c98',
[% elif release.version_int == 26 %]
	'64dab85d',
[% elif release.version_int == 27 %]
	'f5282ee4',
[% elif release.version_int == 6 %]
	'0608b895',
[% elif release.version_int == 7 %]
	'352C64E5',
[% endif %]
	None
]
hashed_directories = True

# RUNROOT settings
runroot = True
runroot_channel = 'compose'
runroot_tag = '[[ release.dist_tag ]]-build'

# PKGSET
pkgset_source = 'koji' # koji, repos
pkgset_koji_tag = '[[ id ]]'
pkgset_koji_inherit = False
filter_system_release_packages = False

# GATHER
gather_source = 'comps'
gather_method = 'nodeps'
gather_backend = 'dnf'
check_deps = False
greedy_method = 'build'
repoclosure_backend = 'dnf'

# CREATEREPO
createrepo_c = True
createrepo_checksum = 'sha256'

# CHECKSUMS
media_checksums = ['sha256']
media_checksum_one_file = True
media_checksum_base_filename = 'Fedora-%(variant)s-%(version)s-%(date)s.%(respin)s-%(arch)s'
#jigdo
create_jigdo = False

additional_packages = [
    ('^Everything$', {
        '*': [
            '*',
        ],
    }),
]
multilib = [
    ('^Everything$', {
        'x86_64': ['devel', 'runtime'],
         's390x': ['devel', 'runtime']
    })
]
filter_packages = []
# format: {arch|*: [packages]}
multilib_blacklist = {
    '*': ['kernel*', 'kernel-PAE*', 'kernel*debug*',
        'dmraid-devel', 'kdeutils-devel', 'mkinitrd-devel',
        'java-1.5.0-gcj-devel', 'java-1.7.0-icedtea-devel',
        'php-devel', 'java-1.6.0-openjdk-devel',
        'java-1.7.0-openjdk-devel', 'java-1.8.0-openjdk-devel',
        'httpd-devel', 'tomcat-native', 'php*', 'httpd',
        'krb5-server', 'krb5-server-ldap', 'mod_*', 'ghc-*'
    ],
}
# format: {arch|*: [packages]}
multilib_whitelist = {
    '*': ['libgnat', 'wine*', 'lmms-vst', 'nspluginwrapper',
        'libflashsupport', 'valgrind', 'perl-libs', 'redhat-lsb',
        'yaboot', 'syslinux-extlinux-nonlinux', 'syslinux-nonlinux',
        'syslinux-tftpboot', 'nosync', '*-static'
    ],
}
createiso_skip = [
        ('^Everything$', {
            '*': True,
            'src': True
        }),
    ]

[% if release.id_prefix == 'FEDORA' %]
ostree = [
    ("^Everything$", {
        "x86_64": {
	    [% if release.version_int >= 27 %]
                "version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN",
	    [% endif %]
            "treefile": "fedora-atomic-host.json",
            "config_url": "https://pagure.io/fedora-atomic.git",
            "config_branch": "f[[ release.version ]]",
            "repo": [
                "Everything",
                [% if request.name == 'testing' %]
                    # In the case of testing, also inject the last stable updates
                    "https://kojipkgs{{ env_suffix }}.fedoraproject.org/compose/updates/f[[ release.version ]]-updates/compose/Everything/x86_64/os/"
                [% endif %]
                "https://dl.fedoraproject.org/pub/fedora/linux/releases/[[ release.version_int ]]/Everything/x86_64/os/"
            ]
            "ostree_repo": "/mnt/koji/mash/atomic/[[ release.version_int ]]",
	    "tag_ref": False
        }
    })
]
[% endif %]

translate_paths = [
   ('/mnt/koji/compose/', 'https://kojipkgs.stg.fedoraproject.org/compose/'),
]
koji_profile = 'bodhi_koji'
link_type = 'hardlink-or-copy'
